/*
 * bsp_aht20.h
 *
 *  Created on: Jun 3, 2024
 *      Author: wangb
 */

#ifndef AHT20_BSP_AHT20_H_
#define AHT20_BSP_AHT20_H_

#include "main.h"
#include "i2c.h"

extern I2C_HandleTypeDef hi2c2;



#define AHT20_ADDRESS (0x38 << 1) // AHT20 I2C 地址，左移1位

void AHT20_Init(void);
void AHT20_ReadData(float *Temperature,float *Humidity);

#endif /* AHT20_BSP_AHT20_H_ */
